var $ = require("../../utils/Ajax.js");
Page({
  data: {
    PictureUrl: getApp().PictureUrl,
    MyBillIndex: 0,
    MyBillNav: ["财富豆支出","礼物支出","礼物收益"],
    Bill1:[],
    Bill2:[]
  },

  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "收支明细"
    }) 

    $.Ajax("api/liveVideoBalance","GET",{},function(res){
      if(res.s){
        that.setData({
          Bill1: res.d.balance,
          Bill2: res.d.userGift
        })
      }else{

      }
      console.log(res)
    })
  },

  // 点击
  MyBill: function(e){
    var Index = e.currentTarget.dataset.index_;
    this.setData({
      MyBillIndex: Index
    })
  }
})